﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace MainLevelPack
{
    class SimpleServiceProvider : IServiceProvider
    {
        #region IServiceProvider

        public object GetService(Type serviceType)
        {
            GraphicsDeviceManager testGDM;
            try
            {
                testGDM = new GraphicsDeviceManager(new Game());
                return testGDM;
            }
            finally
            {
                testGDM = null;
            }
        }
        #endregion
    } 
 
}
